<%-- 
    Document   : productDetails
    Created on : Jun 21, 2012, 3:13:37 PM
    Author     : Owner
--%>

<%--
<%if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 0) {%>
<%@include file="/jsp/top.jsp"%>
<%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 1) {%>
<%@include file="/jsp/userTop.jsp"%>
<%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 2) {%>
<%@include file="/jsp/adminTop.jsp"%>
<%}%>--%>

<%@include file="/jsp/top.jsp"%>

<html>
    <head>
        <title>Products Details</title>
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>
                            <td style="vertical-align: top;" width="20%">
                                <%@include file="/jsp/right.jsp" %></td>
                            <td style="vertical-align: top;" width="80%">
                                <table align="center" border="1" cellspacing="10px" width="100%">
                                    <tr>
                                        <td>
                                            <div style="float: left; width: 100%">
                                                <logic:present name="productDetails" scope="request">
                                                    <table align="center" width="100%" cellspacing="10px">
                                                        <tr>
                                                            <td style="vertical-align: top;" width="50%">
                                                                <img alt="<bean:write name="productDetails" property="productName"/>" src="products/<bean:write name="productDetails" property="productLargeImageName"/>" width="270px" height="300px"/>
                                                            </td>
                                                            <td width="50%">
                                                                <div style="width: 100%;">
                                                                    <table align="center" cellspacing="10px" width="100%">
                                                                        <html:form action="/product" method="post">
                                                                            <tr>
                                                                                <td><h1><bean:write name="productDetails" property="productName"/></h1>
                                                                                    <html:hidden name="productDetails" property="productId"/>
                                                                                    <html:hidden name="productDetails" property="productName"/>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <h3>Selling Price: Rs. <bean:write name="productDetails" property="productPrice"/></h3>
                                                                                    <span style="font-size: small">Price Includes all taxes</span>
                                                                                </td>
                                                                            </tr>

                                                                            <tr>
                                                                                <td><h3>Quantity: </h3><html:text value="1" property="addToCartQty"/></td>
                                                                            </tr>

                                                                            <tr>
                                                                                <td>
                                                                                    <div id="errdividatc" >
                                                                                        <span id="errspanidatc"></span>
                                                                                        <html:errors property="errAddToCart"/>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <a onclick="javascript:return validateAddToCart('./product.do?action=addToCart&direct=0&productId=<bean:write name="productDetails" property="productId"/>','ProductBean')"><%--&productName=<bean:write name="productDetails" property="productName"/>">--%>
                                                                                        <img alt="Buy Now" src="images/buynow.png"/></a><br/>
                                                                                    <a href="./product.do?action=showWishList&productId=<bean:write name="productDetails" property="productId"/>&productName=<bean:write name="productDetails" property="productName"/>">Add to WishList</a>
                                                                                </td>
                                                                            </tr>
                                                                        </html:form>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" ><hr/></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <div>
                                                                    <h2>Description</h2>    <br/>
                                                                    <bean:write name="productDetails" property="productDescription"/>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </logic:present>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>
    </body>
</html>
